


using Mengsk.ProxyDelivery.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mengsk.ProxyDelivery.Service
{
    public class SellerService : ServiceBase<Seller>
    {
        public Seller Get(string nick, string password)
        {
            throw new NotImplementedException();
        }

        public DataCollection<Seller> GetByAll(int id, string name, string phone, string mail, string registerSource, DateTime startCreateTime, DateTime endCreateTime, int pageIndex, int pageSize)
        {
            Request req = new Request { Api = "getByAll" };

            req.Add("id", id);
            req.Add("name", name);
            req.Add("phone", phone);
            req.Add("mail", mail);
            req.Add("registerSource", registerSource);
            req.Add("startCreateTime", FormatToDBTime(startCreateTime));
            req.Add("endStartTime", FormatToDBTime(endCreateTime));
            req.Add("pageIndex", pageIndex);
            req.Add("pageSize", pageSize);
            return this.DoRemoteCall<Seller>(req).ToDataCollection();
        }
    }
}